//
//  MerchantsAddViewController.swift
//  feiyu444
//
//  Created by hanweiguang on 2018/10/19.
//  Copyright © 2018年 hanweiguang. All rights reserved.
//

import UIKit
import  SnapKit

class MerchantsAddViewController: BaseVC {
    
    
    var uibtn:UIButton?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title="商户添加"
        self.createBtnBack();

        
        let uiView = UIView.zj_createView(bgClor: UIColor.color(hexString: "#dadada"), supView: view) { (make) in
            make.left.equalTo(0)
            make.right.equalTo(0)
            make.top.equalTo(kNavigationBarHeight)
            make.height.equalTo(50)
        }
        UIView.zj_createLabel(text: "基本信息", textColor: UIColor.color(hexString: "#000000"), font: nil, supView: uiView) { (make) in
            make.left.equalTo(20)
            make.centerY.equalTo(uiView)
        }
        
        
        let textField1 = UIView.zj_createTextField(text: "", textColor: UIColor.color(hexString: "#ff1122"), placeholder:"请输入网点名称", font: font_make(14), supView: view) { (make) in
            make.top.equalTo(uiView.snp.bottom).offset(5)
            make.left.equalTo(uiView).offset(20)
            make.width.equalTo(kScreenWidth - 40)
            make.height.equalTo(50)
        }
  
        
       let view1 = UIView.zj_createView(bgClor: UIColor.color(hexString: "#989898"), supView: view) { (make) in
            make.top.equalTo(textField1.snp.bottom).offset(5)
            make.left.equalTo(textField1.snp.left)
            make.right.equalTo(textField1.snp.right)
            make.height.equalTo(0.4)
        }
        
        
        
        
        let textField2 = UIView.zj_createTextField(text: "", textColor: UIColor.color(hexString: "#ff1122"), placeholder:"请输入经营者名称", font: font_make(14), supView: view) { (make) in
            make.top.equalTo(view1.snp.bottom).offset(5)
            make.left.equalTo(view1)
            make.width.equalTo(kScreenWidth - 40)
            make.height.equalTo(50)
        }
        
        
        
        let view2 = UIView.zj_createView(bgClor: UIColor.color(hexString: "#989898"), supView: view) { (make) in
            make.top.equalTo(textField2.snp.bottom).offset(5)
            make.left.equalTo(textField2.snp.left)
            make.right.equalTo(textField2.snp.right)
            make.height.equalTo(0.4)
        }
        
        
        
        
        let textField3 = UIView.zj_createTextField(text: "", textColor: UIColor.color(hexString: "#ff1122"), placeholder:"请输入身份证号码", font: font_make(14), supView: view) { (make) in
            make.top.equalTo(view2.snp.bottom).offset(5)
            make.left.equalTo(view2)
            make.width.equalTo(kScreenWidth - 40)
            make.height.equalTo(50)
        }
        
        
        
        
        let uiView2 = UIView.zj_createView(bgClor: UIColor.color(hexString: "#dadada"), supView: view) { (make) in
            make.top.equalTo(textField3.snp.bottom).offset(5)
            make.left.equalTo(0)
            make.right.equalTo(0)
            make.height.equalTo(50)
        }
        UIView.zj_createLabel(text: "身份证正反面照片", textColor: UIColor.color(hexString: "#000000"), font: nil, supView: uiView2) { (make) in
            make.left.equalTo(20)
            make.centerY.equalTo(uiView2)
        }
        
        
         let image1 = UIView.zj_createImageView(imageName: "ic_card_bg", supView: view) { (make) in
            
            make.top.equalTo(uiView2.snp.bottom).offset(30)
            make.left.equalTo(30)
            make.width.equalTo(140)
            make.height.equalTo(100)
            
        }
        
         UIView.zj_createImageView(imageName: "ic_upload_img", supView: image1) { (make) in
            
            make.height.equalTo(50)
            make.width.equalTo(50)
            make.center.equalToSuperview()
            
                
        }
    
 
        
//        uibtn = UIButton.zj_createButton(title: "下一步", titleStatu: . normal,titleColor: UIColor.color(hexString: "#ffffff"), imageName: "", imageStatu: nil, supView: self.view, closure: { (make) in
//           make.center.equalTo(self.view)
//            make.width.equalTo(Adapt(315))
//            make.height.equalTo(Adapt(45))
//        })
//        uibtn?.backgroundColor = UIColor.color(hexString: "#ff1122")
//        uibtn?.layer.cornerRadius=45/2
    
        
        
       
        
        
        
    }
    
    
    
    
}
